package com.limao.DBDataClass;

import java.util.HashMap;

import com.limao.Tool.CacheClass;

public  class  DBObjectDataClass  {
	private HashMap<String, Object> thisValues;

	public DBObjectDataClass() {
		thisValues=new HashMap<String, Object>();
	}
	public DBObjectDataClass(HashMap<String, String> map) {
		thisValues=new HashMap<String, Object>();
		putAll(map);
	}
	public void put(String key, Object o)
	{
		thisValues.put(key, o);
	}
	public Object get(String key)
	{
	 return thisValues.get(key);
	}
	public boolean containsKey(String key) {
		return thisValues.containsKey(key);

	}
	public void putAll(HashMap<String, String> map)
	{
		thisValues.putAll(map);
	}

	public int getId() {
		return  CacheClass.getIntValue((String) get("id")) ;
	}

	public void setId(String id) {
		this.put("id", id);
	} 

}
